<%@ page language="java" import="com.gorge4j.user.*,com.gorge4j.user.constant.*,com.gorge4j.user.vo.*"
    contentType="text/html; charset=utf-8" pageEncoding="utf-8"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="registerDTO" class="com.gorge4j.user.dto.RegisterDTO" scope="page">
    <jsp:setProperty name="registerDTO" property="*" />
</jsp:useBean>
<jsp:useBean id="businessOperationBean" class="com.gorge4j.user.BusinessOperationBean" scope="page" />
<jsp:useBean id="responseVO" class="com.gorge4j.user.vo.ResponseVO" scope="page" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>检查添加用户</title>
</head>
<body>
    <%
        try {
            businessOperationBean.setRegisterDTO(registerDTO);
            ResponseVO respVO = businessOperationBean.addUser();
            if (respVO != null && !respVO.getCode().equals(ResponseConstant.SUCCESS)) {
                out.println(respVO.getMessage());
            } else {
    %>
    <jsp:forward page="view.jsp" />
    <%
        }
        } catch (Exception e) {
            e.printStackTrace();
        }
    %>
</body>
</html>